import 'package:flutter_webrtc/flutter_webrtc.dart';
import 'package:get/get.dart';

class RtcState {
  // Rx<Session> session;
  RxString title;

  RxBool isCalling;
  RxBool isMuteMic;
  RxString rtcStatus;

  // RxBool isCaller;

  RxString callPeerID;
  RxString callDuration;
  Rx<RTCVideoRenderer> localRender;
  Rx<RTCVideoRenderer> remoteRender;

  /// 远端视频渲染对象
  RtcState() {
    rtcStatus = "".obs;
    isCalling = false.obs;
    isMuteMic = false.obs;
    // isCaller = false.obs;
    title = ''.obs;
    // session = Session().obs;
    callPeerID = ''.obs;
    callDuration = ''.obs;
    localRender = RTCVideoRenderer().obs;
    remoteRender = RTCVideoRenderer().obs;
  }
}
